<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>HTML文档类型</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/prettify.css" type="text/css" />
<script type="text/javascript" src="../js/prettify.js"></script>

</head>



<body onload="prettyPrint()">

<h1>HTML文档类型</h1>
<hr />
<h3>HTML 4.01 Frameset</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::HTML 4.01 Frameset --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd"&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;title&gt;无标题文档 &lt;/title&gt;
  &lt;/head&gt;
  &lt;frameset rows="*,*"&gt;
    &lt;frame src="UntitledFrame-1" /&gt;
    &lt;frame src="UntitledFrame-2" /&gt;
     &lt;noframes&gt;
      &lt;body&gt;
        &lt;p&gt;This page uses frames. The current browser you are using does not support frames. &lt;/p&gt;
      &lt;/body&gt;
    &lt;/noframes&gt;
  &lt;/frameset&gt;
&lt;/html&gt;
&lt;!-- END::HTML 4.01 Frameset --&gt;
</pre>

<h3>HTML 4.01 Strict</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::HTML 4.01 Strict --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;/html&gt;
&lt;!-- END::HTML 4.01 Strict --&gt;
</pre>

<h3>HTML 4.01 Transitional</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::HTML 4.01 Transitional --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;/html&gt;
&lt;!-- END::HTML 4.01 Transitional --&gt;
</pre>

<h3>HTML 5</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::HTML 5 --&gt;
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;/html&gt;
&lt;!-- END::HTML 5 --&gt;
</pre>

<h3>XHTML 1.0 Frameset</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::XHTML 1.0 Frameset --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;title&gt;无标题文档 &lt;/title&gt;
  &lt;/head&gt;
  &lt;frameset&gt;
    &lt;frame src="UntitledFrame-1" /&gt;
    &lt;frame src="UntitledFrame-2" /&gt;
    &lt;noframes&gt;
      &lt;body&gt;
        &lt;p&gt;This page uses frames. The current browser you are using does not support frames. &lt;/p&gt;
      &lt;/body&gt;
    &lt;/noframes&gt;
  &lt;/frameset&gt;
&lt;/html&gt;
&lt;!-- END::XHTML 1.0 Frameset --&gt;
</pre>

<h3>XHTML 1.0 Strict</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::XHTML 1.0 Strict --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/html&gt;
&lt;!-- END::XHTML 1.0 Strict --&gt;
</pre>

<h3>XHTML 1.0 Transitional</h3>
<pre class="prettyprint linenums">
&lt;!-- BEGIN::XHTML 1.0 Transitional --&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;/html&gt;
&lt;!-- END::XHTML 1.0 Transitional --&gt;
</pre>
</html>
